<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
    	$index = D('Type');
    	//分配数据 遍历导航栏
      $typelist = $index->getType();
      $this->assign('pid',$typelist);

      //首页展示遍历
      $result = $index->getHello();
      $this->assign('nav',$result);

      //特别推荐遍历
      $array = $index->getTbshow();
      //dump($array);
      $this->assign('arr',$array);

      //轮播
      $vido = D('vido');
      $list = $vido->select();
      //dump($list);
      $this->assign('list',$list);
      $this->display();
    }
	   
}